import api from "@/api";
import { PORT } from "../config/servicePort";


// 获取当日任务统计
export const getTodayTaskSta = (data: any) => api.post(`${PORT}/api/dispatcher/statistics/jobByDate`, data);

// 获取近7天任务统计
export const getWeekTaskSta = (data: any) => api.post(`${PORT}/api/dispatcher/statistics/jobSeries7d`, data);

// 获取当日告警信息
export const getTodayAlertList = (data: any) => api.post(`${PORT}/api/dispatcher/statistics/alertStats`, data);


//******
// 统计分析 */
// 获取总数居
export const getTotalSta = (data: any) => api.post(`${PORT}/api/dispatcher/statistics/dashboardStats`, data);





